home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 2007 January, February, March & April
/
Chip-Cover-CD-2007-02.iso
/
Pakiet bezpieczenstwa
/
mini Pentoo LiveCD 2006.1
/
mpentoo-2006.1.iso
/
modules
/
nessus-2.2.8.mo
/
usr
/
include
/
nessus
/
nessusudp.h
< prev
next >
Wrap
C/C++ Source or Header
|
2006-06-13
|
547b
|
26 lines
#ifndef NESSUS_UDP_H__
#define NESSUS_UDP_H__
#ifdef HAVE_NETINET_UDP_H
#include <netinet/udp.h>
#endif
#if !defined(HAVE_STRUCT_UDPHDR) || HAVE_STRUCT_UDPHDR == 0
#define HAVE_STRUCT_UDPHDR 1
struct udphdr {
u_short uh_sport; /* source port */
u_short uh_dport; /* destination port */
u_short uh_ulen; /* udp length */
u_short uh_sum; /* udp checksum */
};
#endif
#if defined(HAVE_STRUCT_UDPHDR) && !defined(HAVE_BSD_STRUCT_UDPHDR)
#define uh_sport source
#define uh_dport dest
#define uh_ulen len
#define uh_sum check
#endif
#endif